package fr.afcepf.qualimetrie.data;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

import fr.afcepf.qualimetrie.entity.Organisme;
/**
 * DaoOrganisme.
 * @author Stagiaire
 *
 */
public class DaoOrganisme implements IDaoOrganisme {

    /**
     * entityManager.
     */

    private EntityManager em;
/**
 * constr.
 */
    public DaoOrganisme() {
        EntityManagerFactory emf = Persistence.createEntityManagerFactory("Qualimetrie");
              em = emf.createEntityManager();
    }
    @Override
    public Organisme findOrganisme(int paramId) {
        // TODO Auto-generated method stub
        return em.find(Organisme.class, paramId);
    }

}
